package com.eastcom.common.db;

import java.util.HashMap;
import java.util.Map;

public class LineData {

	private LineData previous;
	
	private LineData next;
	
	private Map dataMap=new HashMap();

	public Map getDataMap() {
		return dataMap;
	}

	public void setDataMap(Map dataMap) {
		this.dataMap = dataMap;
	}

	public LineData getNext() {
		return next;
	}

	public void setNext(LineData next) {
		this.next = next;
	}

	public LineData getPrevious() {
		return previous;
	}

	public void setPrevious(LineData previous) {
		this.previous = previous;
	}
	
	protected Object getObject(Integer columnIndex){
		return this.dataMap.get(columnIndex);
	}
	
	protected Object getObject(String columnName){
		return this.dataMap.get(columnName);
	}
	
	public void setObject(Integer columnIndex,Object object){
		this.dataMap.put(columnIndex, object);
	}
	
	public void setObject(String columnName,Object object){
		this.dataMap.put(columnName, object);
	}
}
